Leat\Domain\Services\GiftcardProductService C

Total Complexity 116
Dependencies 8
Dependents 1
Total lines 906
Lines of code 577
Logical lines of code 294
Comment lines 194
Methods 17
Properties 4

Methods 17

Method Rating Maintainability Complexity Lines of code
process_giftcard_order()
D
26
29 171
handle_giftcard_withdrawal_refund()
A
41 13 58
handle_giftcard_withdrawal()
A
43 10 50
save_giftcard_recipient_email()
A
45 9 40
add_giftcard_recipient_field()
A
42 7 54
validate_giftcard_recipient_email()
A
54 8 19
send_giftcard_email()
S
46 6 38
add_refund_field_script()
S
54 6 23
create_giftcard()
S
55 5 20
save_giftcard_program_settings()
S
58 5 15
add_giftcard_program_settings()
S
51 4 26
init()
S
52 4 22
find_matching_refunded_order_item()
S
63 3 10
calculate_giftcard_amount()
S
67 3 7
format_giftcard_meta_display()
S
64 2 10
add_giftcard_product_tab()
S
67 1 8
__construct()
S
71 1 6